package com.aos.erp.gov.ex.service;

import com.aos.erp.common.bean.PageBean;
import com.aos.erp.gov.ex.enums.TaskSyncType;
import com.aos.erp.gov.ex.model.GovExSyncTask;

import java.util.Date;
import java.util.List;

public interface GovExSyncTaskService {

    GovExSyncTask getById(long id);

    void addBean(GovExSyncTask bean);

    PageBean<GovExSyncTask> queryByPage(long pageIndex, long pageSize);

    void saveNewAccount(long ticketId, String account);


    List<GovExSyncTask> getTopNeedSync(Date minTime, TaskSyncType type);

    void updateLastStartTime(long id, Date time);

    void updateLastEndTime(long id, Date time, int num);
}